package models

import "gorm.io/gorm"

type Status struct {
	gorm.Model
	UserId  int    `json:"userId"`
	NewId   int    `json:"newId"`
	Contest string `gorm:"type:varchar(20)" json:"contest"`
}
type StstusData struct {
	Status
	Title   string
	Name    string
	Address string
	Img     string
}

func (c *Status) Add() error {
	return DB.Create(&c).Error
}
